<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<IEnumerable<DomainModel.Entities.Answer>>" %>

<h2>Existing Answers for Selected Question</h2>

<table class="staffingexpert" style="width: 650px" cellspacing="0" id="AnswersTable">
<thead>
<tr>
    <th>Answer</th>
    <th>Value</th>
    <th>Actions</th>
 </tr>
 </thead>
 <tbody>         
    <% foreach (var answer in Model) { %>
    <tr>
        <td style="width: 520px; white-space: pre-wrap;"><%= Html.Encode(answer.QAnswer) %></td>
        <td style="width: 50px; white-space: pre-wrap;"><%= Html.Encode(answer.Value) %></td>
        <td style="width: 80px">
            <%= Html.ActionLink("Edit", "EditAnswer", new {answer.AnswerID}) %> |
            <%= Html.ActionLink("Delete", "DeleteAnswer", new {answer.AnswerID})%>
        </td>
    </tr>
    <% }  %>
</tbody>  
</table>